<template>
  <div class="demo-title">chexkbox/demo3</div>
  <div class="demo">
    <CheckboxGroup v-model="val">
      <Checkbox class="checkbox" label="1">Option content 1</Checkbox>
      <Checkbox class="checkbox" label="2">Option content 2</Checkbox>
      <Checkbox class="checkbox" label="3">Option content 3</Checkbox>
    </CheckboxGroup>
  </div>
</template>

<script lang="ts" setup>
  import { ref } from 'vue'
  import { Checkbox, CheckboxGroup } from '@sscd-mobile/checkbox'
  const val = ref(['2', '3'])
</script>

<style lang="less" scoped>
  .demo {
    padding: 12px;
    background-color: #fff;
    .checkbox {
      &:not(:first-child) {
        margin-top: 12px;
      }
    }
  }
</style>
